<!DOCTYPE html>
<html lang="en">
    <head>
        <title>document</title>
        <script src="js/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <p>++++++++++ {{msg}} --------</p>
            <p v-text="msg"></p>
            <p v-text="msgHtml"></p>
            <p v-html="msgHtml"></p>
        </div>
        <script>
            var vm = new Vue({
                el: "#app",
                data: {
                    msg: "hello world",
                    msgHtml: '<h3 style="color:blue"> 张孟欢迎您学习vue.js</h3>'
                }
            })
        </script>
    </body>
</html>